package com.example.demo.controller;

import com.example.demo.Utils.TokenUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
    @GetMapping("/hello")
    public String hello(){

        String token ="yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjMsImlzcyI6ImF1dGgwIiwiZXhwIjoxNjA5MTYyMTgxfQ.yMwyr8Rv4mYyB6QKN2q8XShih1Tfemjg8lLE5tMXk54";

        TokenUtil.verify(token);

        return "Hello world";
    }
}
